//
//  MeTableViewCell.m
//  Haliaeetus
//
//  Created by junli hou on 2018/4/30.
//  Copyright © 2018年 BMY. All rights reserved.
//

#import "MeTableViewCell.h"

@implementation MeTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self= [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = WS_RGB(248, 248, 248);
        

        
        [self.contentView addSubview:self.titleLabel];
        [self.contentView addSubview:self.iconImageView];
        [self.contentView addSubview:self.desLabel];
        UIImageView *lineView = [[UIImageView alloc]init];
        lineView.backgroundColor = WS_RGB(240, 240, 240);
        lineView.frame = CGRectMake(20,89.5,WS_SCREEN_FRAME_WIDTH-40,0.5);
        [self.contentView addSubview:lineView];
        
        UIImageView *rightImage = [[UIImageView alloc]init];
        rightImage.frame = CGRectMake(WS_SCREEN_FRAME_WIDTH-24-20,33,24,24);
        rightImage.image=[UIImage imageNamed:@"right"];
        [self.contentView addSubview:rightImage];
        
    }
    return self;
}

- (UIImageView *)iconImageView{
    if (!_iconImageView) {
        _iconImageView = [[UIImageView alloc]init];
        _iconImageView.frame = CGRectMake(21,33,24,24);
    }
    return _iconImageView;
}


- (UILabel *)titleLabel{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc]init];
        _titleLabel.frame = CGRectMake(60,27,WS_SCREEN_FRAME_WIDTH-30,10);
        _titleLabel.font = [UIFont systemFontOfSize:14];
        _titleLabel.textColor = WS_RGB(68, 69, 60);
    }
    return _titleLabel;
}

- (UILabel *)desLabel
{
    if (!_desLabel) {
        _desLabel = [[UILabel alloc]init];
        _desLabel.frame = CGRectMake(60,49,WS_SCREEN_FRAME_WIDTH-30,20);
        _desLabel.font = [UIFont systemFontOfSize:11];
        _desLabel.textColor = WS_RGB(140,140,135);
    }
    return _desLabel;
}





- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
